package View;

import javax.swing.JFrame;
import javax.swing.JButton;

import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class HandleCatalogView extends JFrame{
	JButton btnUpdate;
	JButton btnAdd;
	JButton btnSet;
	
	public HandleCatalogView() {	
		setTitle("Handle Catalog");
		getContentPane().setLayout(null);
		this.setSize(493,471);
		
		btnUpdate = new JButton("Update catalog");
		btnUpdate.setFont(new Font("Tahoma", Font.BOLD, 16));
		btnUpdate.setBounds(97, 34, 200, 50);
		getContentPane().add(btnUpdate);
		
		btnAdd = new JButton("Add to catalog");
		btnAdd.setFont(new Font("Tahoma", Font.BOLD, 16));
		btnAdd.setBounds(97, 90, 200, 50);
		getContentPane().add(btnAdd);
		
		btnSet = new JButton("Setting distributions");
		btnSet.setFont(new Font("Tahoma", Font.BOLD, 16));
		btnSet.setBounds(97, 146, 200, 50);
		getContentPane().add(btnSet);
	}
	

	
	public void addHandleCatalogListener(ActionListener actionListener){
		btnUpdate.addActionListener(actionListener);
		btnAdd.addActionListener(actionListener);
		btnSet.addActionListener(actionListener);
	
	}
	public void showWindow(){
		setVisible(true);
	}
	public void hideWindow(){
		setVisible(false);
	}	
	
	public JButton getbtnUpdate() {
		return  btnUpdate;
	}
	public JButton getbtnAdd() {
		return  btnAdd;
	}
	public JButton getbtnSet() {
		return  btnSet;
	}
	/*public void clearFields()
	{
		btnUpdate.set
	}*/
	
	
}
